let ModalComponent = require("../../../framework/js/aui/components/modal.component");

window.AUI.customCompoents.define("ui-3-modal-1", class extends ModalComponent {
    constructor(name) {
        super(name);
        var self = this;
        self._prepend = function () {
            return '';
        };
        self._append = function () {
            return '';
        };
        self._attr = function () {
            return `class="modal-nofooter" title="操作" s="1"`;
        };
        self._content = function () {
            return `<div>modal from item id {{data.id}}</div>
`
        };
        self.methods = Object.assign(self.methods, {
            beforeModalShow() {
                var self = this;
                console.log("modal overlay open");
            },
            onModalShow() {
                var self = this;
                console.log("modal overlay show");
            },
            onModalHide() {
                var self = this;
                console.log("modal overlay hide");
            },
        });
    }
});